package top.yjp.jtf.plugin;

import com.intellij.openapi.fileTypes.LanguageFileType;
import com.intellij.openapi.util.NlsContexts;
import com.intellij.openapi.util.NlsSafe;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;

import javax.swing.*;

public class ExcelFileType extends LanguageFileType {
    public static final ExcelFileType INSTANCE = new ExcelFileType();
    
    protected ExcelFileType() {
        super(ExcelLanguage.INSTANCE);
    }
    @Override
    public @NonNls @NotNull String getName() {
        return "Excel File";
    }

    @Override
    public @NlsContexts.Label @NotNull String getDescription() {
        return "Microsoft Excel Spreadsheet";
    }

    @Override
    public @NlsSafe @NotNull String getDefaultExtension() {
        return "xlsx";
    }

    @Override
    public Icon getIcon() {
        return null;
    }

}
